<!doctype html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
	<meta name="format-detection" content="telephone=no" />
	<title>速翔网络</title>
	<link rel="stylesheet" type="text/css" href="../c/aui.css" />
	<link rel="stylesheet" type="text/css" href="../c/suxiangw.css" />
	<style>
		#sx-header {
			background: #161823 !important;
		}

		.aui-btn img {
			width: 2rem;
		}
	</style>
</head>

<body>
	<header class="aui-bar aui-bar-nav" id="sx-header">
		<a class="aui-pull-left aui-btn" tapmode onclick="_close()"><img src="../i/left.png" /></a>
		<div class="aui-title">

		</div>
	</header>
</body>
<script type="text/javascript" src="../j/api.js"></script>
<script type="text/javascript">
	apiready = function() {
		frame(api.pageParam['url'], '', '1', api.pageParam);
		// 回到屏幕
		api.addEventListener({
			name : 'viewappear'
		}, function(ret, err) {
		});
		// 离开屏幕
		api.addEventListener({
			name : 'viewdisappear'
		}, function(ret, err) {

		});
		//应用进入后台事件
		api.addEventListener({
			name : 'pause'
		}, function(ret, err) {
		});
		// 应用从后台回到前台事件
		api.addEventListener({
			name : 'resume'
		}, function(ret, err) {
		});
	}

	function frame(name, header, footer, pageParam, useHi, bounces) {
		// 解析属性	消除点击300S 延时问题 tapmode
		api.parseTapmode();
		if (!useHi) {
			useHi = false;
		} else {
			useHi = true;
		}
		var headerh;
		var footerh;
		if (header == 1) {
			headerh = 0;
		} else {
			var header = $api.byId('sx-header');
			$api.fixStatusBar(header);
			var headerPos = $api.offset(header);
			headerh = headerPos.h
		}
		var body_h = api.winHeight;
		if (footer == 1) {
			footerh = 0;
		} else {
			$api.fixTabBar($api.byId('sx-footer'))
			footerh = $api.offset($api.byId('sx-footer')).h;
		}
		if (bounces) {
			bounces = false
		} else {
			bounces = true
		}
		if (pageParam) {

		} else {
			pageParam = api.pageParam
		}
		pageParam['_t_h'] = headerh;
		pageParam['_b_h'] = footerh;
		name = 'xiaoxi_view'
		api.openFrame({
			name: name,
			url: _h_w + name + '.html',
			bounces: true,
			reload: true,
			rect: {
				x: 0,
				y: headerh,
				w: 'auto',
				h: body_h - headerh - footerh-50
			},
			pageParam: pageParam,
			softInputMode: false,
			softInputBarEnabled: false,
			allowEdit: true,
			useWKWebView: false
		})

	}
</script>

</html>
